<?php

class UserManager {
	public $strings = "";
  
	function __construct(){
		$this->strings = new strings;
	}

	function ignore($hostmask){
		file_put_contents("ignore.dat",$hostmask."\n",FILE_APPEND);
		return true;
	}


	function unignore($hostmask){
		$curList = str_ireplace("\n$hostmask","",file_get_contents("ignore.dat"));
		file_put_contents("ignore.dat",$curList);
		return true;
	}


	function ignoreList(){
		$list = split("\n",file_get_contents("ignore.dat"));
		return implode(", ",$list);
	}
	
}

?>
